package com.jiexinyun.entity.worktask;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.sql.Timestamp;

/**
 * 安卓机台任务 需要设置一下状态
 * 1.开始生产
 * 2.生产完成
 */

@Data
@TableName("work_task_reg")
@Schema(description = "安卓生产登记任务")
public class WorkTaskRegEntity {

    @TableId(type= IdType.ASSIGN_UUID)
    @Schema(description = "ID",example = "1234567890123456789012")
    private String id;

    @Schema(description = "工步码",example = "0412-001")
    private String gongbuma;

    @Schema(description = "生产指令-工艺路线ID",example = "1")
    private Integer wisePpPlanGxId;

    @Schema(description = "生产指令-ID",example = "1")
    private Integer wisePpPlanId;

    @Schema(description = "产品ID",example = "0001")
    private Integer hwid;

    @Schema(description = "产品名称",example = "六角螺纹钢")
    private String hwmc;

    @Schema(description = "规格",example = "sa")
    private String gg;

    @Schema(description = "物料材质",example = "sa")
    private String wlCz;

    @Schema(description = "标准",example = "sa")
    private String wlBz;

    @Schema(description = "等级",example = "sa")
    private String wlDj;

    @Schema(description = "表面处理",example = "sa")
    private String wlBmcl;

    @Schema(description = "单位",example = "sa")
    private Integer jldw;

    @Schema(description = "生产批号",example = "sa")
    private String ph;

    @Schema(description = "备注说明",example = "实践活动啥数据库撒旦")
    private String comment;

    @Schema(description = "订单号码",example = "sa")
    private String ddh;

    @Schema(description = "工序ID",example = "1")
    private Integer gxId;

    @Schema(description = "工序名称",example = "水水大大我")
    private String gxName;

    @Schema(description = "设备ID",example = "HT-10001")
    private Integer sbId;

    @Schema(description = "设备名称",example = "设备1")
    private String sbName;

    @Schema(description = "计划数量",example = "100")
    private BigDecimal jhSl;

    @Schema(description = "摘要说明",example = "100")
    private String bz;

    @Schema(description = "工艺说明",example = "100")
    private String color;

    @Schema(description = "开工时间",example = "2021-01-01 10:00:00")
    private Timestamp startTime;

    @Schema(description = "完工时间",example = "2021-01-01 10:00:00")
    private Timestamp endTime;

    @Schema(description = "状态 1 已经登记",example = "1")
    private Short status;

    @Schema(description = "状态 1 还没有导入万思生产登记 2 已经导入万思生产登记",example = "2")
    private Short transferStatus;

    @Schema(description = "人员ID",example = "20")
    private Integer ryId;

    @Schema(description = "排序",example = "1")
    private Integer sx;

    //为了控制查询当天的
    @Schema(description = "日期格式yyyy-MM-dd",example = "2021-01-01")
    private String regDateStr;

}
